#include "Game.h" 

Game::Game(PresentationFactory *factory): presentationFactory(factory)
{
	Initialize();
}

Game::~Game()
{

}

void Game::Initialize()
{
	presentationFactory->CreateMapSelector();
	presentationFactory->GetMapSelector()->RegisterObserver(this);
	presentationFactory->CreatePlayersSelector();
}

// EVENTS from presentation Factory
void Game::SelectedMap()
{
	presentationFactory->GetPlayersSelector()->GetPlayers(1, 6);
}

void Game::CancelledMap()
{

}

void Game::Start()
{
	MapSelector* mapSelector = presentationFactory->GetMapSelector();

	mapSelector->GetMap();
}

